namespace eCommerce.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class itemgroupspicture : DbMigration
    {
        public override void Up()
        {
            DropColumn("dbo.ItemGroups", "IconPictureId");
            RenameColumn(table: "dbo.ItemGroups", name: "Picture_Id", newName: "IconPictureId");
            RenameIndex(table: "dbo.ItemGroups", name: "IX_Picture_Id", newName: "IX_IconPictureId");
        }
        
        public override void Down()
        {
            RenameIndex(table: "dbo.ItemGroups", name: "IX_IconPictureId", newName: "IX_Picture_Id");
            RenameColumn(table: "dbo.ItemGroups", name: "IconPictureId", newName: "Picture_Id");
            AddColumn("dbo.ItemGroups", "IconPictureId", c => c.Int());
        }
    }
}
